home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.1
/
richtext.1
< prev
next >
Wrap
Text File
|
1995-07-25
|
6KB
|
133 lines
rrrriiiicccchhhhtttteeeexxxxtttt((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((RRRReeeelllleeeeaaaasssseeee 1111)))) rrrriiiicccchhhhtttteeeexxxxtttt((((1111))))
NNNNAAAAMMMMEEEE
richtext - View a richtext document, typically a mail
message
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
rrrriiiicccchhhhtttteeeexxxxtttt [-c] [-f] [-n] [-p] [-t] [-o] [file]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The _r_i_c_h_t_e_x_t program allows users to view "richtext" files
on an ASCII terminal. It uses termcap(5) capabilities to
highlight text that is supposed to be bold or italic, and to
underline text that is supposed to be underlined. It also
implements most of the richtext commands that have to do
with indentation and justification, as well as the "excerpt"
and "signature" commands.
Richtext is a very simple markup language for sending rich
text through the mail. It is not to be confused with
Microsoft's RTF (Rich Text Format). It is part of the MIME
standard for multimedia Internet mail.
The _r_i_c_h_t_e_x_t program takes raw richtext output on its
standard input or from a file and produces formatted output
on its standard output, which is assumed to be a terminal.
It is intended primarily for use by the metamail(1) program.
The program will also repair the raw input to match up any
richtext command pairs that are out of order.
OOOOPPPPTTTTIIIIOOOONNNNSSSS
When invoked with no options, _r_i_c_h_t_e_x_t expects raw richtext
on its standard input, which is corrected, and then
formatted output is written on its standard output. The
following options can alter that behaviour:
----cccc This option directs _r_i_c_h_t_e_x_t to just correct the raw
richtext and write the corrected version to its
standard output, without performing any formatting.
----ffff This option directs _r_i_c_h_t_e_x_t to use termcap-derived
escape codes for bold and italic text, even if
_r_i_c_h_t_e_x_t is called in a pipe.
----nnnn This option directs _r_i_c_h_t_e_x_t to not do any
correction to the raw richtext it receives.
----oooo This option directs _r_i_c_h_t_e_x_t to use overstriking for
underlining, etc., on terminals where this is the
most appropriate behavior.
----pppp This enables the use of a pager which reports "Press
RETURN to go on" after each screen-full of data.
Page 1 (printed 6/30/95)
rrrriiiicccchhhhtttteeeexxxxtttt((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((RRRReeeelllleeeeaaaasssseeee 1111)))) rrrriiiicccchhhhtttteeeexxxxtttt((((1111))))
Alternatively, if the environment variable
MMMMMMMM____UUUUSSSSEEEEPPPPAAAAGGGGEEEERRRR is present, then the pager will also be
used. This option and the environment variable have
no effect if either standard input or standard
output is redirected.
----aaaa This option, which is only available under DOS,
toggles whether or not to use ANSI mode for
highlighting bold, italic, or underlined text.
----tttt This option directs _r_i_c_h_t_e_x_t NOT to use termcap-
derived escape codes for bold and italic text, even
if _r_i_c_h_t_e_x_t is called in a terminal. Instead, "*"
and "_" will be used to highlight the affected text.
XXXX11111111 RRRReeeessssoooouuuurrrrcccceeeessss
If you're using the xterm program, you can control what font
is used for bbbboooolllldddd text using the "xterm*boldFont" resource.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
metamail(1), mailto(1), termcap(5)
BBBBUUUUGGGGSSSS
This is a very quick hack, really -- an attempt to provide
minimal richtext support for an ASCII terminal. The author
makes no pretense of having gotten every single case right.
CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
Copyright (c) 1991 Bell Communications Research, Inc.
(Bellcore)
Permission to use, copy, modify, and distribute this
material for any purpose and without fee is hereby granted,
provided that the above copyright notice and this permission
notice appear in all copies, and that the name of Bellcore
not be used in advertising or publicity pertaining to this
material without the specific, prior written permission of
an authorized representative of Bellcore. BELLCORE MAKES NO
REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY OF THIS
MATERIAL FOR ANY PURPOSE. IT IS PROVIDED "AS IS", WITHOUT
ANY EXPRESS OR IMPLIED WARRANTIES.
AAAAUUUUTTTTHHHHOOOORRRRSSSS
Nathaniel S. Borenstein
Richtext correction algorithm by Rhys Weatherley
(rhys@cs.uq.oz.au).
Page 2 (printed 6/30/95)